System and method for generating a relationship network

ABSTRACT

A computer-implemented system and process for generating a relationship network is disclosed. The system provides a set of data items to be related and generates variable length data vectors to represent the relationships between the terms within each data item. The system can be used to generate a relationship network for documents, images, or any other type of file. This relationship network can then be queried to discover the relationships between terms within the set of data items.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 11/945,909 (now U.S. Pat. No. 7,987,191), filed on Nov. 27, 2007, which is a continuation under 35 U.S.C. §120 of International Application No. PCT/US2006/021662, entitled RELATIONSHIP NETWORKS, filed on Jun. 5, 2006 under the Patent Cooperation Treaty, which was published by the International Bureau in English on Dec. 14, 2006 with International Publication Number WO/2006/133050, which designates the United States and which claims the benefit of U.S. Provisional Patent Application No. 60/688,242, filed Jun. 6, 2005. Each of the above-referenced applications is incorporated in its entirety by reference herein.

STATEMENT REGARDING FEDERALLY SPONSORED R&D

This invention was made during work supported by U.S. Department of Energy under Contract No. DE-AC02-05CH11231. The government has certain rights in this invention.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to vector-based information storage and retrieval systems. More particularly, the present invention relates to a system for storing, generating and retrieving context vectors to construct and visualize relationship networks of information.

2. Description of the Related Art

Phrase based or keyword searching is a common method of searching used for electronic data. Keyword searching searches throughout an information database for instances of the words in the search query. Keyword searching does not, however, give results based on relevance; search query results often include items with no relevance or relationship to one another other than the instance of a word in the search query. For example, a user intending to search products by the technology company Apple may enter the search query “Apple.” The search results, however, would likely include items relating to the apple fruit, songs by the music label Apple, and so on. Consequently, the search query results of phrase based searching often have nothing in common with the user's search intent.

Search methods which relate one object to another object are often used in place of keyword searching in order to provide search query results relevant to the searcher's intent. Such relationship-based search methods vary widely and range from precise to general catch-all approaches. Methods relating text objects can vary widely in precision and approach, quality and quantity. For example, Caid et al., in U.S. Pat. No. 5,619,709, titled “System and Method of Context Vector Generation and Retrieval” relies on context vector generations and dated neural network approaches as opposed to more advanced auto-associative approaches. Weissman et al, in U.S. Pat. No. 6,816,857, uses methods of distance calculation to determine relationships for the purpose of placing meaning-based advertising on websites or to rate document relevance in currently used search engines.

These relationship based searches do not, however simulate the process that a human would use in analyzing relevant information to relate objects with one another. Starting with an object of interest, a researcher typically researches within certain contexts and forms relationships between information gathered during the process of reading and analyzing literature. During this flexible process, the context of interest may change, become refined or shift and take on a new direction depending on the information found or thought processes of the researcher. After the researcher finishes the research process, he is left with a valuable collection of information that is related to a specific theme or context of interest. For example, if the researcher's object of interest was a period of music and the context was the Baroque style, then a researcher might relate compositions to one another, compositions to a composer, compositions to a geographical location or time period. Common relationship-based searches do not simulate this process because they are both inflexible and non-interactive; they neither allow a user to define and control the context and individual relationships during the search, nor do they allow for the quality and quantity of relationships to be determined and visualized interactively by the user.

SUMMARY

Certain embodiments herein provide for a system and computer-implemented method for the analysis, design and implementation of vectors created from an information database for use with relationship networks. Certain embodiments also provide for a relationship-based network generation engine for use with the relationship networks.

In one embodiment, a system to determine relationships between objects in an electronic database is provided. First, objects, such as raw text documents or data, are obtained. The objects are then processed by filtering out irrelevant data and calculating the distance between objects. The distance metric may, for example, be an exponential decay calculation. The distance scores are then used to create a relationship score value for relationships between objects. Vectors using the relationship score values are generated and stored. In certain embodiments, the variable length vectors may store data that represents the distance between objects within a specified frame with respect to an operative object. Since each object within a vector may have its own vector, the vectors may then be used to build a relationship network. Furthermore, the organization of connections between objects in the relationship network can be utilized for searching, visualization or other interpretation by a user. In certain embodiments, unique objects may be highlighted, while in other embodiments, common objects may be highlighted.

In another embodiment, a network generation engine for finding relationships is provided. When operating on intersecting attributes found between two or more vectors, the network generation engine is able to identify obvious, unique and hidden relationships between text, words or objects.

In one embodiment, the network generation engine may be implemented on a relationship database containing a set of vectors. An input query object is used as a guide to extract all direct and associated relationships from the relationship database for the query object. The engine may score and rank these relationships and measure the similarity score of any intersecting objects, then build another relationship network showing the relationship of the query object to other objects and the strength of their relationship using the similarity score. The resulting relationship network of the query objects can be visualized if necessary for further interpretation. To ensure that the submitted objects or objects stay within a specific context when a relationship network is being built, a thematic context in the form of a filter can be used to control the kind of relationships extracted within the resulting network.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a flow chart for one embodiment of a system for generating a relationship network

FIG. 2 is a flow chart for one embodiment of a system for generating vectors for use with a relationship network based on an electronic information database containing text documents.

FIG. 3A shows a sample document from an information database containing text documents.

FIG. 3B shows the document of FIG. 3A after it has been parsed.

FIG. 4 shows one embodiment of a frame for use with the sample data of FIGS. 3A and 3B.

FIG. 5 shows a sample associative memory module for the term “red” from FIG. 4 at a state where the current term being analyzed in the frame is the core term “red.”

FIG. 6A shows the associative memory module for the term “red” after the system completes its analysis of the information database containing the document of FIG. 3A.

FIG. 6B shows the sample query object vector for the associative memory module of FIG. 6A.

FIG. 7 shows a sample flow chart for a network generation engine.

FIG. 8A shows a sample exclusion filter vector applied to a query object vector

FIG. 8B shows one sample method to generate an expanded query object vector using the filtered query object vector of FIG. 8A.

FIG. 8C shows one sample method to generate expanded associated object vectors using the filtered query object vector of FIG. 8A.

FIG. 8D shows one sample method to use expanded associated object vectors with an expanded query object vector to find associated terms between the associated object vectors and the expanded query object vector in order to produce search results for a query.

FIG. 9 shows a graph visualization for a relationship network created in response to a query for the term “red.”

FIG. 10 illustrates a relationship network system according to one embodiment.

DETAILED DESCRIPTION OF CERTAIN INVENTIVE EMBODIMENTS

One embodiment of the invention is a computer method and system that creates and discerns relationships between different items in a collection. In one embodiment, a many-to-many relationship is created between data items in a data set. As one example, the data items may be genes, and the data set may be the GENBANK gene database. As will be described in more detail below, embodiments of the system analyze the data items in the data set and thereafter create variable length data vectors, such as query object vectors, that reflect the relationships between the data items in the dataset. The data vectors can then be stored and used as part of data mining tool which analyzes relationships between the data items. For example, one may search for all genes in Genbank that relate to stomach cancer.

In one embodiment of the invention, the data vectors that mark associations between data items are created by first analyzing direct correlations between two data items, and then looking for further, hidden, associations between the data items. In one embodiment, these hidden relationships are determined by iteratively analyzing the distance that each term in the dataset has from other terms. Thus, for example, the more times that two words are found to be associated with one another in the data set, the closer the relationship between them is formed. In certain embodiments, terms are analyzed by moving a “frame” through each data item. For example, if the data item is a document, the frame may move through the document one line at a time, but covering three lines. As the frame moves down each line of the document, the distance between terms within the frame is analyzed. During this analysis, data vectors are created which store the relationships between each term in the frame. In one embodiment, each term within the entire dataset is represented by one vector. That vector provides the distances and relationships between that term and its related terms.

Another embodiment of the invention is a system and method of using the stored data vectors to provide useful results of a search inquiry. When a person or machine inputs a term as part of a search, the data vector for that term is located, and the terms most relevant to the search term are identified from the data vector. The system then retrieves the data vectors for the most relevant terms in order to expand the search. The terms that are related to the most relevant terms can then be identified, and the process can continue to build a relationship network between the original search term, and all of its related terms. Once the queries are executed and the vectors containing the most relevant terms are scored, a relationship network is built. The resulting network of the submitted term may then be prepared for visualization for further interpretation. In one embodiment, the terms are displayed on a computer screen with a web of links showing how related each search term was to its results. To ensure that the submitted terms stay within a specific context when a relationship network is being built, a thematic context in the form of a filter can be used to control the kind of relationships extracted within the resulting network.

The systems and methods disclosed herein allow a user to interactively engage in information mining, hidden association and connection extraction, relationship network construction and comparison of objects while interactively applying thematic context controls to refine the type of relationships extracted. The systems and methods provide the user with information on how objects within the information database relate to one another, in what contexts they are related, and the strength of their relationship.

By combining an interactive role for the user, similar to what a researcher engages in during the process of experimentation, and applying it to an iterative process of automated text mining methods, certain embodiments discussed herein give the user the ability to choose the direction and define relationships as connections are made between objects of interest in the information searched. Interactively defining and extracting relationships between objects, themes and other contexts provides a valuable level of precision for relationship exploration and discovery in text.

For example, if a user was searching for Baroque compositions in an electronic information database such as the Internet, the user may submit the term “Baroque” to the relationship network system. The user may also choose to direct the search in the direction of Baroque music by using a filter term such as “compositions” in order to avoid results relating to Baroque art. The system would then not only provide information on compositions strongly associated with the term “Baroque,” but also for compositions strongly associated with terms related to “Baroque,” such as composer names “Bach” and “Handel,” compositions involving instruments associated with Baroque music, such as “viola da gamba” or “harpsichord”, or the related art period, “Classical,” and so on.

In one embodiment, the relationship network system disclosed herein may be used for term disambiguation, which provides the ability to distinguish two strings of characters that are exactly the same but that have different meanings dependent upon context such as acronyms that double as identifiers or symbols or actual words. For example, the word “cleave” has two definitions that are opposite of one another.

FIG. 1 shows a process 100 for generating a relationship network using an electronic information database. In certain embodiments, an electronic information database may include, but is not limited to, a collection of characters or other forms of text, images, audio, video, or any other data that may be analyzed electronically. Objects or terms within the information database may thus be documents, characters, words, images, songs, or videos (“terms”).

In the embodiment illustrated, the system first selects an electronic information database to process at a state 101. In one example, the database is a database of musical compositions. The system then creates vectors for terms within the database at a state 102. The vectors are created in a way to capture the different strengths of relationships between compositions within the database. Once the vectors are created, the system receives a query “Q” from the user at a state 103. A query is undertaken, for example, when a user would like to find compositions similar to composition listed in the query Q. In certain embodiments, the system may create the vectors before receiving a query in order to reduce data processing expenditures in response to the query. In other embodiments, the vectors may be created after the query is received. Although in certain embodiments a vector is used to store relationships between terms, other data structures may be used in other embodiments. In certain embodiments using vectors, the vector space representation scheme uses variable length query object vectors. The variable length vector may have a plurality of component values or elements that are determined based on relationships between terms. In addition, the variable length vectors may be sized based on the number of associated terms within each vector.

In certain embodiments, associated terms are terms that have either a direct or indirect relationship with each other. In some embodiments, the one term is a “first” term and the second term is a “core term”. In certain embodiments, a direct relationship is where a core term is found within the same frame in a vector as the associated term. In certain embodiments, an indirect relationship is where a core term and the associated term each share a common term in their respective vectors. Other relationships between terms may also be generated for use with certain embodiments discussed herein.

Returning to FIG. 1, in response to a query for term Q from a user at the state 103, the system then generates a relationship network for Q at a state 104 based on the variable length vector(s) for the term Q. In certain embodiments, a relationship network is comprised of a network of relationship vectors whose connections to each other, and the strength of those connections, are based on shared unique attributes within a defined context and theme. Contexts and themes are discussed more specifically below. Once the relationship network has been generated at the state 104, the system may then return terms that are associated with Q at a state 105. For example, the returned terms may point to compositions that are by the same composer as Q, compositions related to Q, or recommendations based on Q.

I. Generating Vectors for a Relationship Network

FIG. 2 is a flow chart for one embodiment of the process 102 of generating variable length vectors from data stored within a database. The process 102 gathers each document in the database at a state 201. For each document that is gathered, the document is parsed at a state 202 in order to remove irrelevant or low value data, such as stop-words (common words such as a, of, as, the, on, etc.). After each document has been parsed at the state 202, the information database contains only valuable terms.

Then, for each parsed document, the system inserts a frame at a state 203 in the document. The frame can be thought of as an overlay that covers one or more lines of text in the documents. For example, the frame may cover three lines or sentences in the document. Once the frame has been inserted at the state 203, the process 102 moves to a state 204 wherein the first term in the first line processed in the frame is selected. FIG. 4 shows one embodiment of a frame 400 for use with the sample data illustrated in FIGS. 3A and 3B. After the first term in the active sentence of the frame is selected at the state 204, a set of relationship data is generated between the first term (“core term”) and the other terms within the frame (“associated terms”) at a state 205. The system records the relationship data for the core term, which includes data such as a calculated distance score for each core term from the first term. In certain embodiments, the relationship data may be stored in an associative memory module, as shown in FIG. 5. Once the relationship data has been generated for the first term, the process 102 moves to a decision state 206 wherein a determination is made whether the last term in the active sentence of the frame is being analyzed. If the current term is not the last term, then the process 102 moves to a state 207 wherein the next term within the frame is captured. The process 102 then returns to the state 205 to calculate the relationship data between the newly captured term and the other core terms within the frame at the state 205. If the term being processed is the last term in the active sentence of the frame, then the process 102 moves to a state 208 wherein the frame is moved ahead by one sentence or line in the document under analysis. If the term is not the last term in the active sentence for the frame, the process 102 moves back to state 205.

Once the process 102 has moved the frame ahead by another line or sentence, a determination is made whether or not the frame is at the end of the document at a decision state 209. If a determination is made that the process 102 is not at the end of the document, then the process 102 returns to the state 204 wherein the first term within the active sentence of the moved frame is selected. If a determination is made that the frame is at the end of the document, then the process 102 moves to a decision state 210 where a determination is made whether or not the process is at the last document in the database. If the process 102 is not at the last document in the database, then the process 102 moves to a state 211 wherein the next document within the database is selected. The process 102 then returns to the state 203 wherein a frame is inserted into the newly gathered document.

If a determination is made at the decision state 210 that the process 102 is at the last document, then the process moves to state 212 where it retrieves the recorded relationship data, such as from the associative memory module, for the first term in the database. Then the process moves to state 213 where a variable length query object vector is created using the relationship data from state 212. In certain embodiments, the relationship data values from state 212, which may be stored in a query object vector, may be enhanced when stored in the query object vector. Examples of enhancing the relationship data values include increasing the data values of unique associations and decreasing the data values for common associations. FIG. 6B shows the sample query object vector for the associative memory module of FIG. 6A. Next, the process moves to decision state 214 then checks to determine if the term analyzed is the last term in the database. If it is not the last term analyzed, the process moves to state 215 wherein the next term within the database is selected. The process 102 then returns to the state 213 wherein a query object vector for the next term is created. If a determination is made at the decision state 214 that the process 102 is at the last term, then the process terminates at the end state 216.

FIG. 3A shows a sample document 300 from an information database containing text documents. FIG. 3B shows the stored data from the document of FIG. 3A after it has been parsed 310. As it can be seen from the differences between FIGS. 3A and 3B, in this embodiment the system removed stop-words such as “they” 301 “from” 302 “until” 303 and “they're” 304 and also organized each sentence according to the identification of the document 311 it was found in and its terms 312.

As shown in FIG. 4, one embodiment of the context or frame 400 consists of associated terms surrounding and ultimately associated with the current, core term being analyzed in the frame, “red” 412. In one embodiment, the frame 400 and the space it encompasses are constructed by using distance thresholds within documents. For example, in FIG. 4, the distance threshold is one sentence before and one sentence after the sentence containing the core term being analyzed 410. If a term is within the distance threshold, it is considered an associated term and it becomes part of the context frame 400. On the other hand, if a term is outside the distance threshold, it will not become part of the context frame 400 and does not receive a distance score (also referred to as a score association) to the core term. Using the number of words in a document as well as number of sentences, paragraphs, characters or other objects, distance thresholds can be calculated and the size of the framed context 400 will grow and fluctuate as documents are read in and new statistical data is gathered. In one embodiment, wherein the digital content to be analyzed is raw text documents, the frame 400 is set to three, four or five sentences per frame. The example in FIG. 4 has a three sentence context frame 400.

The system may move the frame 400 through the documents or other parsed data which comprise the information database. As the frame is moved line by line through a set of documents, terms can be automatically associated with one another including an identifier representing the operative document 311. As terms flow in and out of the frame that moves through the documents, associated terms can define their strength of association to the core term by distance scores. For example, in FIG. 4, after the system has calculated the distance scores for the core term “red,” the focus of the frame will move to the next term, “pink,” until the focus reaches the final term in the middle line of the frame, “raspberry.” After the system has calculated the distance scores for terms associated with the term “raspberry”, the frame will advance by one line and the core term focus will begin with the first term on the next line, “Hummingbirds.” Furthermore, the sentence beginning with the term “bloom” will flow out of the frame and the sentence beginning with the term “one” will flow into the frame.

By giving a distance score to each associated term, each core term 410 in the document becomes a statistically important object containing a family of relationship scored associative terms as elements of its associative memory module. The distance score between two terms may then be used to create a relationship score between two terms after the process completes analysis of the entire information database. For example, in one embodiment, distance scores between two terms as they appear repeatedly within a frame throughout the information database may be summed to create a relationship score.

Frame 400 usage in single documents becomes especially advantageous when relationship scores are generated over thousands or millions of documents. In certain embodiments herein, significant relationships between words are defined over time by strong and unique connections between two or more terms. Relationship scores to a term can be compared to the way a person might learn by repetition. A person will tend to remember and associate two terms together if he hears them together on a repeated basis, whereas a person may not remember or associate two terms together if he does not hear them together very often. In certain embodiments discussed herein, the system gives a high relationship score to two or more terms which appear often together. In certain other embodiments, two or more terms sharing a very unique set of attributes are scored highly.

As discussed above, the system may store relationships between a core term 410 and its associated term in file called an associative memory module that is created for the core term. In one embodiment, an associative memory module is a database schema storing information related to statistical and distance-based object associations, as well as document statistics. The associative memory module may thus advantageously capture meaning sensitivity in the data to be searched, which requires that the closeness of every pair of terms be known, scored for distance and stored. Thus, associative memory modules may advantageously store information such as words, paragraphs, search queries, objects, documents, document identifiers, parts of images, parts of terms, parts of text, parts of sequences or any piece of an object that has been split into parts, terms and documents, and many other types of information items similarly represented, such as numerical, financial, and scientific data. In one embodiment, every associated term in an associative memory module and vector is also the core term of its own associative memory module and vector, thereby enabling a high dimension many-to-many scored associative relationship network. In certain embodiments, this in turn enables strong comparison to occur between, for example, parts of terms, between terms, and terms and the documents they appear in.

In certain embodiments, the length of associative memory modules and vectors may be limited in order to facilitate faster creation of the relationship network or due memory storage constraints since the length of the vector or module may affect the size of the database and the system's performance capabilities. In other embodiments, an associative memory module or vector may contain as many elements as may be supported. In certain embodiments, the system may present a certain number of terms with a high score, or terms with a score above a certain threshold value in order to best represent the information database queried and to facilitate viewing by a user.

FIG. 5 shows a sample associative memory module for the term “red” 500 from FIG. 4 at a state where the current term being analyzed in the frame 400 is the core term “red” 410. The associative memory module 500 shown has three sections: statistics related to the term 510, statistics related to documents containing the term 520, and statistics related to associated terms 530. In the embodiment displayed, the first section, statistics related to the term 510, may contain information such as the number of occurrences of the term in the text analyzed 511, the number of sentences that contain the term 512, the number of other terms associated with the core term 513, and the number of associations between other terms with the core term 514. Since the associative memory module 500 displayed only contains data through analysis of the term “red” 410 in the first document analyzed in the database (FIG. 3A), the data in FIG. 5 reflects the incomplete analysis. Thus, since the term “red” 410 has occurred only once so far, and in only one sentence 412, the number of occurrences 510 and number of sentences 511 for the term “red” 410 both equal one. Similarly, since all eighteen of the terms analyzed so far are also all of the terms currently in the frame 400, they are all associated 513 with the term “red” 410. Furthermore, since none of these associated terms have yet appeared twice, they are all eighteen individual associations 514 for the term “red” 410.

The document statistics section 520 advantageously identifies documents 521 that contain the term, the number of sentences in the document that contain the term 522, and a score for the document in relation to the term 523. In the sample shown, only one document 524 is listed because it is the only document analyzed that contains the term “red”. The document 524 is identified by its title, although any other well known identification system may be used to record document identifications, such as a uniform resource locator (“URL”) address. Furthermore, only one sentence 525 that contains the term “red” has been found in the document. Consequently, a score 526 of one has been assigned to that document. In the embodiment shown, the score 526 associated with a document is the number of appearances of the term within the document, although in other embodiments other scoring methods may be used.

The associated terms section 530 includes, but is not limited to, data such associated terms 531, the number of occurrences of each associated term in relation to the core term 532 and the corresponding distance score for the associated term/core term pair 533. In other embodiments, the associated terms section 530 may also include data on the number of sentences processed so far that contain the associated term in relation to the core term and the distance of the associated term to the core term.

Distance scores 533 to measure associations between terms are applied within the moving frame. For example, FIG. 4 shows a three sentence frame 400 surrounding the core term, “red”. As the frame 400 and its core term focus 410 moves through the document a calculation is applied to assign distance scores to each term within the frame 400 in relation to the core term 410.

A distance score 533 may be calculated by any number of well known methods. Furthermore, in order to give greater value to associated terms in closer proximity to a core term, the distance score values 533 assigned to associated terms as their distance to the core term increases may advantageously be decayed. This may advantageously be applied using the Fibonacci sequence in reverse. In other words, in one embodiment using the Fibonacci sequence in reverse, the distance score from the core term to an associated term is: S_(ij)=φ^(Δx),

where:

-   -   S_(ij)=distance score between core term i and associated term j,     -   φ=0.618 is the Golden Ratio component “phi”^(†), and     -   Δx=|x_(i)−x_(j)| is the relative position between core term i         and associated term j.         -   ^(†)φ is the decimal component of the Golden Ratio             φ=1.618034.

Returning to FIG. 5, the distance score 536 using this equation for the associated term “cardinal” to the term “red,” which are neighboring terms (Δx=1), is 0.618=0.618¹. Similarly, the distance score 537 for the associated term “bloom” to the term “red” is 0.008=0.618¹⁰, since “bloom” is ten terms away from “red” (Δx=10). In certain embodiments, as the system encounters a second occurrence between an associated term and a core term separate from the first occurrence, then the system may add the distance score of the second occurrence to the first occurrence in order to keep a running total of the distance score for the association. For example, in FIG. 5, if the system encounters the term “cardinal” 534 again within a frame containing “red”, and the distance score for the second occurrence is 0.008, then the system may update the distance score 536 for “cardinal” in the “red” associative memory module 500 to be 0.626=0.618+0.008. In other embodiments, other methods may be used to update a distance score value as the system processes an information database.

Calculations based on Fibonacci's number may be advantageously used because sequences based on the ratio of successive Fibonacci numbers, the Golden Ratio, are found in many natural phenomena, including biology and materials science. Fibonacci's number may thus have a relationship to grammar and human generated patterns and an effect on the interpretation of information.

In another embodiment, the Enhanced Exponentially Weighted Moving Average (EEMA), a variation of the EWMA (Exponentially Weighted Moving Average) time series calculation, may be used to compute distance scores between terms within a frame. A sample equation using the EEMA may be defined as: EEMA=1/((K*(C−P)+P)

Where:

-   -   C=Position of the core term     -   P=Previous period's Simple Moving Average (SMA)     -   N=Number of periods for EEMA     -   K=e^((−C/5.0)) Smoothing constant

In yet another embodiment, a standard exponential decay algorithm can be applied. Below are two equations for exponential decay that can be used to calculate distance scores:

If core term i comes before associated term j, then Sij=1/e(j−i)

If core term i comes after associated term j, then Sij=1/e(i−j)

where Sij=relationship score between object i and j,

FIG. 6A shows the associative memory module 600 for the term “red” after the system completes analysis of the information database containing the document of FIG. 3A. In the sample associative memory module 600, the system has determined that the information database analyzed contains twelve occurrences 611 of the term “red” in a total of twelve sentences 612. Furthermore, there are 319 terms associated with “red” and 450 associations between those terms and “red”. Whereas the document “Gardening Journal” 625 contained four sentences 626 totaling four occurrences of “red”, the document “Top News Stories” 628 only contained one sentence with one occurrence 630. Additionally, while the associated term “cardinal” 634 had six associations with red for whose individual distance scores summed to equal a total distance score 636 of 4.124, the associated term “paste” 637 only had one associated occurrence with “red” for a total distance score of 0.008.

After the system processes each document in the information database, each associative memory module may be used to create a query object vector. FIG. 6B shows a sample query object vector 650 created from the associative memory module 600 of FIG. 6A. In the embodiment shown, the distance score 633 from the associative memory module 650 is used to calculate the relationship score 653 for the query object vector 650 by emphasizing common associations, as will be discussed in further detail below. The system then ranks the associated terms in the query object vector 650 according to their relationship scores 653. For example, in FIG. 6B, the associated term “Cardinal” 654 is ranked first because it has the highest relationship score and the term “Paste” 655 is ranked at 319, which equals the total number of terms associated with “red,” because it has the lowest relationship score. Each associative memory module is thus used to create a query object vector 213.

FIG. 6B thus illustrates one advantage of the systems and methods described herein. In keyword based searches, if a user looking for red sweaters used the term “red” in her query, then she would only receive results where the sweaters were specifically listed with the term “red.” On the other hand, if the user submitted the search to an embodiment of the system described herein, the user would not only receive results for “red” sweaters, but for sweaters with other shades of red, such as cardinal, maroon and raspberry.

In certain embodiments, the system may advantageously use data from an associative memory module in order to create a different relationship score values for a query object vector. For example, in one embodiment, the distance score may be modified with the aim of emphasizing unique associations, such as to help in finding hidden relationships. Hidden relationships may be used to assist in hypothesis formulations by presenting a list of possibly important new relationships unknown to the user. In one embodiment, the following uniqueness function may be used to calculate a relationship score emphasizing uniqueness: U _(ij) =S _(ij) ·B _(ij),

where:

-   -   S_(ij)=Distance-based relationship score between term i and j     -   B_(ij)=Bias for term i of association with term j,         -   where:             B _(ij) =A _(i) /A _(j)             -   A_(i)=Total number of associations of term i             -   A_(j)=Total number of associations of term j

In another embodiment, the distance score may be modified with the aim of emphasizing common associations such as to generate a clear definition based on direct associations. Direct associations can be used to generate a list of very similar objects. In one embodiment, the following commonality function may be used to calculate a relationship score emphasizing commonly associated terms: B _(ij) =A _(j) /A _(i)

where:

-   -   A_(i)=Total number of associations of term i     -   A_(j)=Total number of associations of term j

Thus, by the time the process of FIG. 2 completes, each term in each parsed document will have its own query object vector; i.e., each term will be a core term for a query object vector and an associated term for other term's query object vectors. In certain embodiments, each query object vector may either emphasize unique or common relationships. Furthermore, in certain embodiments, each document will also have its own associate memory module and query object vector. These vectors may then be used to build a relationship network.

II. Building a Relationship Network

FIG. 7 shows a process 700 for a network generation engine for use with embodiments of the relationship network discussed above. Specifically, disclosed is one embodiment for generating a relationship network using the query object vectors generated from an electronic information database containing text documents as described above. In response to a search query term inputted by a user, a relationship network may be generated from the extraction of relationships from query object vectors based upon the search query term. In certain embodiments, the relationship network would be comprised of a network of expanded vectors of terms, their connections to each other and the strength of these connections, where the connections are based on shared attributes within a defined frame. Although the sample flow chart illustrated discusses an embodiment using text documents and terms, in other embodiments, the query term may be audio data, video data, image data, or any other kind of electronic data.

First, a user submits at least one query term, Q, to the system at a state 701. In certain embodiments, multiple terms may be submitted to the system, and may be treated as one query term or a multiple of query terms. In certain embodiments, if Q does not exist in the information database, then the system does not return any data. In response to receiving the query, the system retrieves the vector for the query term, the query object vector (“QOV”) at a state 702. The process 700 then moves to a state 703 wherein the user or system configures a filter for use with the query in order to focus the query results. This filter may be set, by for example, filtering terms out of the vector retrieved for the search term Q at the state 703. This will be discussed in further detail below with reference to FIG. 8A. Next, the system expands the vector into an expanded QOV at a state 704. This process will be discussed in further detail below with reference to FIG. 8B. The process 700 then moves to a state 705 wherein the system uses the QOV to generate expanded associated object vectors (“AOV”). This will be discussed in further detail below with reference to FIG. 8C. The system then moves to a state 706 to find associated terms between the expanded AOVs and the expanded QOV. Search results for the query Q are then provided at a state 707. The process of providing search results will be discussed below with reference to FIG. 8D. Finally, the process 700 presents a visual representation of the relationship network based on the query results.

In one embodiment, the system uses filters, such as forms of ontology of related themes and categories, to control the kind of relationships derived during the search process and to ensure that terms stay within a certain defined context when the relationship network is being built. In certain embodiments, filters may be employed because the terms selected for the filter also exist in the information database being searched, so the filter terms thus have vectors of their own. The filter may be supplied along with the query in order to focus the query results. The filter can be a list of words, symbols or objects by which the results of a query are controlled. For example, the filter phrase “genes and inferred relationships to drugs” may be used for a genomic search done on an information database related to genetic data.

In certain embodiments, the filter may be a complete vector wherein its elements represent the entire set of frame data or context in a database of documents to control the relationship extraction process. Any search results that are found to intersect with the vector-filter will be processed according to the type of filter used.

Many different kinds of filters may be enlisted for use with the systems and methods disclosed herein. One type of filter, an exclusion filter, can actively remove terms and vectors which do not match the filter. Exclusion filters may be used to assure that elements from a specific theme are removed from the query object vectors and associated object vectors for any aspect of the process. FIG. 8A shows a sample exclusion filter vector 810 containing the terms Z₁ to Z_(n). The filter vector is applied to the query object vector 820 retrieved for query Q 801 in order to focus the results of the query. As shown in FIG. 8A, the system advantageously removes instances of terms that appear in the filter vector. The terms Z₁, Z₂, and Z₃ have been filtered from the final query object vector 825 because those terms appear in the exclusion filter 810.

On the other hand, a selection filter can actively select terms and vectors which match the filter. Selection filters may be used to assure that only elements from a specific theme are used for a specific process. In one embodiment, the process includes the selection of top query term vector elements and associated term vector elements for generation of expanded query term vectors and associated term vectors. Filter elements also effect the selection of final terms being used in the expanded query term vector to expanded associated comparison and association score calculation.

Another type of filter, a weighting filter, may adjust the relationship scores of certain terms and vectors in order cause the terms or vectors to be reordered. Weighing filters may be used to alter the weight of a specific group of terms, thereby affecting their impact on the algorithm process and calculation results.

Filters may advantageously be applied during any point wherein the system is expanding the query object vector retrieved in response to a query. The use of filters results in the ability of the system to base relationships on specific sets of terms which may comprise a theme. Without theme filtering, the system might retrieve inferred relationships of all kinds which may not be beneficial if it is not known what kind of relationships to look for. For example, a user submitting the search query term “red” to an information database without a filter might receive very broad results. On the other hand, if the user employs a selection filter, which would exclude all terms not found in the filter, such as the filter phrase or vector “flowers” as a context for “red,” specific terms relating to red colored flora will most likely be found in the query results. In certain embodiments, filters may be predefined and interchangeable in order to allow a user to tailor a search query. Creating a network of term relationships with this kind of context control allows for previously unidentified connections to be brought to the fore as a user of the system might desire to find what relationships to this query term exist in a specified context.

FIG. 8B is a data flow diagram that shows one exemplary method of generating an expanded QOV 850 using the filtered QOV 825 of FIG. 8A. First, the system identifies the thirty strongest terms, A₁ to A₃₀ 826, related to the query term Q 801. These thirty strongest terms are added to the beginning 826 of the expanded QOV 850. Next, the system retrieves the vectors for each of those thirty terms, A₁ to A₃₀ 830, and inserts the top three strongest terms in each of those thirty vectors 831 (i.e., A_(1,1) to A_(1,3) for A₁, A_(2,1) to A_(2,3) for A₂, . . . A_(10,1) to A_(10,3) for A₁₀) to complete the expanded QOV 850. Although the embodiment of the system shown selects thirty terms for processing, in other embodiments, any other number of terms may be used for processing.

FIG. 8C is a data flow diagram showing one method of generating an expanded AOV 875 using the filtered QOV 825 of FIG. 8A. First, the system identifies the thirty strongest terms, A₁ to A₃₀ 826, related to Q 801, retrieves their vectors 827, and begins an expanded AOV 875 for each term A₁ to A₃₀. Then the system identifies the three strongest terms from the first dimension vectors related to each of A₁ to A₃₀, (i.e., A_(1,1) to A_(1,3) for A₁, A_(2,1) to A_(2,3) for A₂, . . . A_(30,1) to A_(30,3) for A₃₀) 830, adds those associated terms to the corresponding expanded AOV 875, A₁ to A₃₀, and retrieves their vectors 831. Similarly, the system retrieves the three strongest terms from the second dimension vectors related to each A_(1,1) to A_(30,3), (i.e., A_(1,1,1) to A_(1,1,3) for A_(1,1), A_(1,2,1) to A_(1,2,3) for A_(1,2), . . . A_(30,3,1) to A_(30,3,3) for A_(30,3)) 840 and retrieves their vectors 841. Once more, the system retrieves the three strongest terms from the third dimension related to each A_(1,1,1) to A_(30,3,3) (i.e., A_(1,1,1,1) to A_(1,1,1,3) for A_(1,1), A_(1,1,2,1) to A_(1,1,2,3) for A_(1,2), . . . A_(30,3,3,1) to A_(30,3,3,3) for A_(30,3,3)) 850. The top three associated terms from the third dimension vectors 850 are then inserted after the first dimension terms 830 already in the expanded AOV 875 to complete the expanded AOV 875. Although FIG. 8C shows the generation of an expanded AOV 875 for A₁, in the embodiment shown the process produces a total of 30 expanded AOVs for each A₁ to A₃₀ 826.

FIG. 8D is a data flow diagram that shows one exemplary method of using expanded AOVs 875 with an expanded QOV 850 to find associated terms between the AOVs 875 and the expanded QOV 850 in order to produce search results for the query Q 801. The expanded vectors 850 and 875 are passed to a function that determines similarity between intersecting terms in the expanded vectors 850 and 875. In one embodiment, as illustrated in FIG. 8D, the system may take the intersection of each expanded AOVs 875 and the QOV 850 in order to locate associated terms 880 for query term Q 801. In other embodiments, other functions may be used to locate associated terms.

In certain embodiments, a similarity score between the query term Q and each associated term may be calculated after associated terms for Q are located. The associated terms may then be ranked by their similarity score values, so that the associated term with the highest similarity score is ranked first. In certain embodiments, the similarity score function may be a correlation coefficient distance measurement and its value can be assigned to the resulting matching terms as a score signifying a final similarity measurement between the associated term and the initial query term, i.e., how much the results match the initial query term.

In one embodiment, the similarity score between two vectors may be calculated by taking the sum of the relationship scores from the intersecting terms and multiplying it by the length of the vector composed only of the intersecting terms. In another embodiment, the similarity score between two vectors may be a correlation coefficient distance measurement function which uses the following equations:

${n\left( {\sum\limits_{i = 1}^{n}\left( {V\bigcap W} \right)_{k}} \right)}\mspace{14mu}{or}$ ${X}{\sum\limits_{i = 1}^{n}X_{k}}$

where X=(V∩W)_(k)

V=query vector, and

W=any vector compared to the query vector.

In another embodiment, an uncentered Pearson correlation coefficient distance measurement may be used to calculate the similarity score between vectors of different sizes, wherein:

$r_{U} = {\frac{1}{n}{\sum\limits_{i = 1}^{n}{\left( \frac{x_{i}}{\sigma_{x}^{(0)}} \right)\left( \frac{y_{i}}{\sigma_{y}^{(0)}} \right)}}}$ where $\sigma_{x}^{(0)} = \sqrt{\frac{1}{n}{\sum\limits_{i = 1}^{n}x_{i}^{2}}}$

and wherein distance is defined by d _(U)≡1−r _(U)

In certain embodiments, after the query result terms 880 are located, the vectors of each element returned for the query also extracted and compared and scored for similarity. This step advantageously allows for the results to be networked by intersecting the contents of their vectors. The network created by the intersection may be used to determine how the initial query results are related, in what context they relate, whether their connection is direct or indirect, and the strength of their relationships.

The query result data and the relationship network built using that data may thus advantageously show the relationship of the query term 801 to other terms, the relationship of vectors to one another, and the strength of their relationships using a similarity score. In certain embodiments, the resulting relationship network of the query result terms 880 and/or query-related vectors can be visualized if necessary for further interpretation. For example, FIG. 9 shows a graph visualization 900 (not drawn to scale) for a relationship network created in response to a query for the term “red.” Terms that have a higher relationship score to the term “red” appear closer to “red,” such as “cardinal” 654. Terms with a lower relationship score appear farther away, such as “paste” 655. A user may advantageously use a visualization similar to FIG. 9 in order to quickly understand the relationship between terms in the information database.

III. Example System Components

FIG. 10 illustrates a relationship network system 1000 according to one embodiment. The relationship network system 1000 includes a web server 1010 that generates and serves pages of a host web site to computing devices 1020 of end users. Although depicted as desktop computers 1020, the computing devices 1020 may include a variety of other types of devices, such as cellular telephones and Personal Digital Assistants (PDA). The web server 1010 may be implemented as a single physical server or a collection of physical servers. Certain embodiments may alternatively be embodied in another type of multi-user, interactive system, such as an interactive television system, an online services network, or a telephone-based system in which users select items to acquire via telephone keypad entries and/or voice.

The web server 1010 provides user access to electronic information represented within a database or a collection of databases 1020. An information acquisition processor 1015 that runs on, or in association with, the web server provides functionality for users to enter a search query for information they would like to find. In one embodiment, the information represented in the database 1020 may include documents, characters, words, images, songs, or videos or any other data that may be stored electronically. Many hundreds of thousands or millions of bytes of data may be stored in the database.

In one embodiment, a document or other object in the information database 1020 may be retrieved using the information acquisition processor 1015. Each object may be located by, for example, conducting a search for the item via the information acquisition processor 1015, or by selecting the object from a browse tree listing.

As illustrated in FIG. 10, the relationship network system 1000 includes a relationship processor 1030 which is responsible for, among other tasks, creating relationship vectors for the data in the information database 1020. These relationship vectors are then stored in the relationships database 1040. In certain embodiments, the relationship processor 1030 runs periodically and collectively analyzes or “mines” the information database in order to create and maintain the relationships database 1040 in response to new data that may be stored in the information database 1020.

In response to a query received by the information acquisition processor 1015, the relationship network system 1000 sends the query to the network generator 1050, which in addition to the query receives relationship vector information from the relationships database 1030 in order to generate a relationship network based on the query. In certain relationship network system embodiments, a set limit can be placed on the number of relationships that are created in order to address the substantially large amounts of relationships that can be created in web space, as discussed above.

The resulting relationship network is then sent to the query results processor 1060, which processes the results, optionally creates a visual representation of the relationship network, and sends this data to the information acquisition processor 1015. The results data may then be returned to computing devices 1020 that submitted the query via the Internet.

IV. Example: Music Database

One embodiment of the invention may be implemented to discover relationships between human-generated content related to a database of music. Some examples of human-generated content relating to music are playlists, blogs, and recommendation lists. The system may determine relationships between music files based on their location within a directory or repository over a large data space, such as the Internet. This relationship data, which may include information such as the artist, album, title of the song and year of release, may be stored in associative memory modules, and then be transferred into query object vectors, as described above. Then, in response to a query, such as for an artist or a song, the system may create and present a relationship network of related artists or songs to the query and optionally visualize the relationship network.

V. Conclusion

All of the features described above may be embodied in, and automated by, software modules executed by general purpose computers. The software modules may be stored in any type of computer storage device or medium. All combinations of the various embodiments and features described herein fall within the scope of the present invention.

Although the various inventive features and services have been described in terms of certain preferred embodiments, other embodiments that are apparent to those of ordinary skill in the art, including embodiments which do not provide all of the benefits and features set forth herein and do not address all of the problems set forth herein, are also within the scope of this invention. For example, although certain examples described above involve presenting search query results to users, the invention may also be used in other systems, such as a spell checker, financial relationship networking, gene interpretation, or presenting advertisements to users based on their search query results. The scope of the present invention is defined only by reference to the appended claims. 

What is claimed is:
 1. A system for discovering data items related to a search query, comprising: a processor; a relationship database stored in a computer memory and comprising a set of data items to be related, wherein each data item comprises a plurality of terms; and a network generation engine executing on the processor and configured to: receive a query object; based on the query object, extract all direct and associated relationships from the relationship database for the query object; score and rank the extracted direct and associated relationships; measure the similarity score of any intersecting objects by taking a sum of the relationship scores from any intersecting terms and multiplying the sum by the length of a vector composed only of the intersecting terms; build a relationship network comprising the relationship of the query object to other objects, wherein the strength of the relationship with the other objects is based on the measured similarity score; execute a filter to provide thematic context for controlling the type of relationships extracted within the relationship network; and an output for outputting data items related to the query object and within the thematic context.
 2. The system of claim 1, wherein the relationship network is comprised of a network of relationship vectors.
 3. The system of claim 2, wherein the relationship vectors comprise connections to each other, and the strength of those connections are based on shared unique attributes within the thematic context.
 4. The system of claim 1, wherein the relationship database has had common language words removed from the data items.
 5. The system of claim 1, wherein the network generation engine is configured to extract all direct and associated relationships from the relationship database by retrieving a query object vector (“QOV”) for the query for the query object.
 6. The system of claim 5, wherein the relationship database comprises associated object vectors configured to represent the relationships between data items in the database.
 7. The system of claim 6, wherein the network generation engine is configured to use the QOV to generate expanded associated object vectors.
 8. The system of claim 1, wherein the filter is based on a word, symbol or object provided to the network generation engine.
 9. The system of claim 1, wherein the network generation engine is configured to receive filter information along with the query object to focus the query results.
 10. The system of claim 1, wherein the filter is an exclusion filter that is configured to remove terms and vectors which do not match the filter.
 11. The system of claim 1, wherein the filter is a selection filter that is configured to select terms and vectors which match the filter.
 12. The system of claim 1, wherein the filter is a weighing filter that is configured to adjust relationship scores of specific terms or vectors to cause the terms or vectors to be reordered in any search results.
 13. An electronic method performed by a processor of discovering data items related to a search query, comprising: providing a relationship database comprising a set of data items to be related, wherein each data item comprises a plurality of terms; receiving a query object; extracting all direct and associated relationships from the relationship database for the query object based on the query object; scoring and ranking the extracted direct and associated relationships; measuring the similarity score of any intersecting objects by taking a sum of the relationship scores from any intersecting terms and multiplying the sum by the length of a vector composed only of the intersecting terms; building a relationship network showing the relationship of the query object to other objects, wherein the strength of the relationship with the other objects is based on the measured similarity score; executing a filter to provide thematic context for controlling the type of relationships extracted within the relationship network; and outputting data items related to the query object and within the thematic context.
 14. The method of claim 13, wherein the relationship network is comprised of a network of relationship vectors.
 15. The method of claim 14, wherein building a relationship network comprises building relationship vectors comprising connections to each other, and the strength of those connections are based on shared unique attributes within the thematic context.
 16. The method of claim 13, wherein the relationship database is provided with common language words removed from the data items.
 17. The method of claim 13, wherein extracting all direct and associated relationships from the relationship database comprises retrieving a query object vector (“QOV”) for the query for the query object.
 18. The method of claim 17, wherein the relationship database comprises associated object vectors configured to represent the relationships between data items in the database.
 19. The method of claim 18, further comprising using the QOV to generate expanded associated object vectors.
 20. The method of claim 13, wherein the filter is based on a word, symbol or object provided to the network generation engine.
 21. The method of claim 13, wherein receiving a query object comprises receiving filter information to focus the query results.
 22. The method of claim 13, wherein executing the filter comprises executing an exclusion filter that is configured to remove terms and vectors which do not match the filter.
 23. The method of claim 13, wherein executing the filter comprises executing a selection filter that is configured to select terms and vectors which match the filter.
 24. The method of claim 13, wherein executing the filter comprises executing a weighing filter configured to adjust relationship scores of specific terms or vectors to cause the terms or vectors to be reordered in any search results. 